package com.engine4cloud.tdf.admin.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.engine4cloud.tdf.admin.api.dto.AreaQueryDTO;
import com.engine4cloud.tdf.admin.api.entity.SysAreaEntity;
import com.engine4cloud.tdf.admin.api.vo.AreaResultVO;
import com.engine4cloud.tdf.common.data.datascope.TdfBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysAreaMapper extends TdfBaseMapper<SysAreaEntity> {

    IPage<AreaResultVO> pageList(Page<Object> page, @Param("dto") AreaQueryDTO dto);

    List<SysAreaEntity> findChildrenById(@Param("id") Long id);
}
